#include<iostream>
using namespace std;
int main(){
    int a, b, d, x, y;
    cin>> a >> b >> d;
    for(x =0; x <= 900; x++){
        y = (a*x-d)/b;
        if(a*x +b*y == d){
            for(int i =0; i < 10; i++){
                cout << x -i*b << " " << y +i*a << endl;
            }
            return 0;
        }
    }
}

